package br.ufpe.cin.rgms.linha.apresentacao;

import java.io.IOException;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import br.ufpe.cin.rgms.Facade;
import br.ufpe.cin.rgms.linha.modelo.Linha;
import br.ufpe.cin.rgms.membro.modelo.Membro;

public class AlterarLinhaServlet extends HttpServlet {

	@Override
	protected void doGet(HttpServletRequest request, HttpServletResponse response)
	throws ServletException, IOException {
		Linha linha = Facade.getInstance().getLinha(Integer.parseInt((String) request.getParameter("linha")));

		request.setAttribute("linhaalterar", linha);

		RequestDispatcher view = request.getRequestDispatcher("alterarlinha.jsp");
		view.forward(request, response);
	}

}
